<script>
	import { mapState } from 'vuex'
	export default {
		onLaunch: function() {
			// this.$store.dispatch('initSocket',{url:'ws://190.168.1.57:8082',mid: '1',token: ''})
			
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		globalData:{
			mid: '',
			token: '',
		},
		computed:{
			...mapState(['dataSocket'])
		},
		watch:{
			dataSocket(v){
				console.log(v,'监听 服务器返回数据')
			}
		},
		methods:{
			
		}
	}
</script>

<style>
	image{height: 100%;width: 100%;}
	/*每个页面公共css */
	
	.center{ display: flex; align-items: center; justify-content: center;}
	.between{ display: flex; align-items: center; justify-content: space-between;}
	.flex{ display: flex; align-items:center;}
</style>
